import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'

import Welcome from '../components/Welcome.vue'

Vue.use(VueRouter)
const routes = [

  {path: '/login', component: Login},
  {path: '/welcome', component: Welcome},
 
]

//1.定义路由对象
const router = new VueRouter({
  routes
})

export default router
